cmake_minimum_required(VERSION 3.13)
project(simulink)

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)

include_directories(include)
add_subdirectory(third_party/fmt EXCLUDE_FROM_ALL)

file(GLOB_RECURSE SRC ./src/*.cpp)

add_library(simulink SHARED ${SRC})
target_link_libraries(simulink fmt-header-only)

add_subdirectory(test)
